package com.dyson.service;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: Wy
 * @Email: DysonWy@foxMail.com
 * @Time: 2020/5/6 11:37
 * @Description:
 */
@Data
@Component
@AllArgsConstructor
@NoArgsConstructor
//接受配置文件中dyson.start.config前缀的配置
@ConfigurationProperties(prefix = "dyson.start.config")
public class MyService {
    private String key;
    private String value;
    private String array;
}
